//
//  HMGuessTableViewCell.m
//  localLife
//
//  Created by Limonwei on 15/11/26.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "HMGuessTableViewCell.h"
#import "UIImageView+WebCache.h"


@interface HMGuessTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *label1;

@property (weak, nonatomic) IBOutlet UILabel *Label2;
@property (weak, nonatomic) IBOutlet UILabel *Label3;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@end

@implementation HMGuessTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(HMGuess *)model{
    
    _model = model;
    
    
    _label1.text = _model.name;
    
    _Label2.text = _model.intro;
    
    _Label3.text = [NSString stringWithFormat:@"价格:%@",_model.price];
    
    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:_model.cover]];
    
}

@end
